﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucJobStatus.ascx.cs" Inherits="UserControl_ụcobStatus" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = window.parent.location;
    }
</script>

<div>
    <table id="tab" width="100%" style="margin-top: 15px">
        <tr>
            <td>
                Status
            </td>
            <td>
                <asp:TextBox ID="txtStatus" runat="server"></asp:TextBox>
            </td>
            <td>
                Note
            </td>
            <td>
                <asp:TextBox ID="txtNotes" runat="server" Width="95%"></asp:TextBox>
            </td>
        </tr>
        <td>
            <td colspan="4" align="center">
                <asp:Button ID="btnsave" runat="server" Height="30px" Text="Update" OnClick="btnsave_Click" />
            </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
    </table>
    <table width="100%" style="margin-bottom: 15px">
        <tr>
            <td>
                <asp:GridView ID="grdJobStatus" runat="server" Width="100%" AutoGenerateColumns="False"
                    CssClass="grd" >
                    <Columns>
                        <asp:TemplateField HeaderText="Status Date">
                            <ItemTemplate>
                                <%# (Convert.ToDateTime(Eval("StatusDate")).ToString("dd/MM/yyyy")) %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" Wrap="True" Width="100px"></ItemStyle>
                            <ItemStyle HorizontalAlign="Left" Wrap="True" Width="100px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <%# Eval("StatusJobs")%>
                            </ItemTemplate>
                            <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Note" HeaderStyle-Width="250px">
                            <ItemTemplate>
                                <%# Eval("Notes") %>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="250px" VerticalAlign="Middle" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle CssClass="grdHeader" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                    <PagerSettings PageButtonCount="6" />
                    <RowStyle CssClass="grdRow" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</div>
